#{extends 'main.html' /}

<h1>${draft.title}</h1>
#{if flash.success}
		<p style="color:GREEN"> ${flash.success}</p>
		#{/if}
<form action="@{ProfileController.editDraftRequest()}">
		
	<p>
	<label for="name">Topic Name: </label> <input type="text" name="name"/><span class="error" style="color: Red">#{error 'name' /}</span>
</p>
<p>
	<label for="content">Topic Description: </label><textarea name="description" ></textarea><span class="error" style="color: Red">#{error 'description' /}</span>
</p>
<p>
			 <input type="hidden" name ="draftRequestId" value="${draftRequest.id}"/>
			<input type="hidden" name ="userID" value="${userID}"/>
			<input type="submit" value ="Send your Request" name="postButton"/>
			<input type="submit" value ="Save as draft" name="draftButton"/>
			<input type="submit" value ="Delete draft" name ="deleteButton"/>
			</form>